import java.awt.Graphics;

public class BackgroundTile extends Tile implements Drawable {
	
	int row, col, tileSize;
	private Animation animation;
	
	public BackgroundTile(int col, int row, Animation animation) {
		this.col = col;
		this.row = row;
		tileSize = OurApplet.TILE_SIZE;
		this.animation = animation;
	}
	
	public Animation getAnimation(){
		return animation;
	}
	
	@Override
	public void draw(Graphics g) {
		//animation.update();
		g.drawImage(animation.getCurrentFrame().getImage(), col*tileSize, row*tileSize, null);
	}
}
